package com.maslyk.invitation.utils;

import java.text.Format;
import java.text.SimpleDateFormat;

public class DateTimeUtils {

    public static String formatDate(java.util.Date date, String pattern)
    {
        if(date == null)
            return null;

        Format formatter = new SimpleDateFormat(pattern);
        return formatter.format(date);
    }
}
